package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ShoppingCartMapper {
    List<ShoppingCart> findShoppingCartById(ShoppingCart shoppingCart);

    void insert(ShoppingCart shoppingCart);

    void update(ShoppingCart shoppingCart);

    List<ShoppingCart> findShoppingCartByUserId(Long userId);

    void delete(ShoppingCart shoppingCart);

    void deleteAll(Long userId);

    void addList(List<ShoppingCart> carts);
}
